<template>
  <div id="on">
    <p>页面三来的数据：{{message}}</p>
  </div>
</template>

<script>
  import bus from './bus.js'
   export default {
    data(){
      return {
        message:''
      }
    },
    mounted(){
      bus.$on('msg', (e) => {
        console.log(e);
        this.message =e
      })
    }
  }
</script>

<style scoped>

</style>
